package entity;

import java.util.List;

/**
 * @Author zhangrui
 * @Date 2018/10/30 14:25
 */
public class ClassInfoDO {
    private Long id;
    private String name;
    private List<UserDO> userDOS;

    public List<UserDO> getUserDOS() {
        return userDOS;
    }

    public void setUserDOS(List<UserDO> userDOS) {
        this.userDOS = userDOS;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        userDOS.stream().forEach(userDO -> System.out.println(userDO));
        return "ClassInfoDO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
